﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteSach.master" AutoEventWireup="true" CodeBehind="SachTimKiemTheoDanhMuc.aspx.cs" Inherits="WebApplication1.SachTimKiemTheoDanhMuc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainHolder" runat="server">
    <div class="Dock">
        <div style="padding: 2px 0px 2px 10px; font-weight: bold; color: #FFFFFF; float: left; text-align: left" >
            <asp:Label ID="txt_theloaisach" runat="server" Text="Thể Loại"></asp:Label>
        </div>                  
    </div>
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                             <asp:DataList ID="dl_sach" runat="server" CellPadding="10" Font-Bold="False" 
            Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
            Font-Underline="False" HorizontalAlign="Left" 
            Width="706px" RepeatLayout="Flow" GridLines="Horizontal" onitemcommand="dl_sach_ItemCommand">
            <HeaderTemplate>
                <table style="width: 100%">
                    <tr>
                        <td style="width: 166px">
                            Ảnh bìa</td>
                        <td style="width: 380px">
                            Thông tin</td>
                        <td>
                            Đặt mua</td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" 
                VerticalAlign="Middle" />
            <ItemTemplate>  
               <table style="width: 100%">
                    <tr>
                        <td style="width: 166px" rowspan="4">
                            <asp:Image ID="Image2" runat="server" Height="119px" 
                ImageUrl='<%# "~/Handler.ashx?ID="+Eval("mamh") %>' Width="97px"/>
                        </td>
                        <td style="width: 380px" align="left">
                            <asp:HyperLink ID="hl_ten" runat="server" Text='<%# Eval("tenmh") %>'></asp:HyperLink>
                        </td>
                        <td rowspan="4">
                            <asp:ImageButton ID="bt_giohang" runat="server" 
                                ImageUrl="~/Image/GioHang.jpg" CommandArgument='<%# Eval("mamh") %>' 
                                CommandName="dat" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 380px" align="left">
                            Tác giả:
                            <asp:Label ID="lb_tacgia" runat="server" Text='<%# Eval("tacgia") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 380px" align="left">
                            Nhà sản xuất:
                            <asp:Label ID="lb_nsx" runat="server" Text='<%# Eval("nhasx") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 380px" align="left">
                            Giá bìa:
                            <asp:Label ID="lb_dongia" runat="server" 
                                Text='<%# Eval("DonGiaLe","{0:#,##0} VNĐ") %>'></asp:Label>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
            
               
        <br />
        <asp:Panel ID="Panel1" runat="server" Font-Bold="True">
            Trang:
        </asp:Panel>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
